import request from '@/utils/request'

export function rate(query) {
  return request({
    url: '/system/rate/setRate',
    method: 'post',
    data: query
  })
}

export function rateAvg(query) {
  return request({
    url:  '/system/rate/getAvg',
    method: 'get',
    params: query
  })
}

export function rateCount(query) {
  return request({
    url: '/system/rate/getPeopleForScore',
    method: 'get',
    params: query
  })
}
